package com.kevin.springcloud.dao;

import com.kevin.springcloud.entities.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author kevin
 */
@Mapper
public interface PaymentDao {

    /**
     * 新增
     * @param payment
     * @return
     */
    public int create(Payment payment);

    /**
     *  根据主键查询
     * @param id
     * @return
     */
    public Payment getPaymentById(@Param("id") long id);
}
